import autoImport from 'unplugin-auto-import/vite';
import Components from 'unplugin-vue-components/vite';

export function createAutoImport () {
	return autoImport({
		imports: [
			'vue',
			'vue-router',
			'pinia'
		],
		dts: 'types/auto-import.d.ts',
		eslintrc: {
			enabled: false,
			filepath: './.eslintrc-auto-import.json',
			globalsPropValue: true
		}
	});
}


export function createAutoImportComponents () {
	return Components({
		dirs: ['src/autoComponents/Fm'],
		dts: 'types/components.d.ts',
	});
}
